(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
double(x) → permute(x, x, a)
permute(x, y, a) → permute(isZero(x), x, b)
permute(false, x, b) → permute(ack(x, x), p(x), c)
permute(true, x, b) → 0
permute(y, x, c) → s(s(permute(x, y, a)))
p(0) → 0
p(s(x)) → x
ack(0, x) → plus(x, s(0))
ack(s(x), 0) → ack(x, s(0))
ack(s(x), s(y)) → ack(x, ack(s(x), y))
plus(0, y) → y
plus(s(x), y) → plus(x, s(y))
plus(x, s(s(y))) → s(plus(s(x), y))
plus(x, s(0)) → s(x)
plus(x, 0) → x
isZero(0) → true
isZero(s(x)) → false
Rewrite Strategy: FULL
(1) DecreasingLoopProof (EQUIVALENT transformation)
The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
permute(s(x36500_1), y, a) →+ s(s(permute(x36500_1, ack(s(x36500_1), s(x36500_1)), a)))
gives rise to a decreasing loop by considering the right hand sides subterm at position [0,0].
The pumping substitution is [x36500_1 / s(x36500_1)].
The result substitution is [y / ack(s(x36500_1), s(x36500_1))].
(2) BOUNDS(n^1, INF)
(3) RenamingProof (EQUIVALENT transformation)
Renamed function symbols to avoid clashes with predefined symbol.
(4) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
double(x) → permute(x, x, a)
permute(x, y, a) → permute(isZero(x), x, b)
permute(false, x, b) → permute(ack(x, x), p(x), c)
permute(true, x, b) → 0'
permute(y, x, c) → s(s(permute(x, y, a)))
p(0') → 0'
p(s(x)) → x
ack(0', x) → plus(x, s(0'))
ack(s(x), 0') → ack(x, s(0'))
ack(s(x), s(y)) → ack(x, ack(s(x), y))
plus(0', y) → y
plus(s(x), y) → plus(x, s(y))
plus(x, s(s(y))) → s(plus(s(x), y))
plus(x, s(0')) → s(x)
plus(x, 0') → x
isZero(0') → true
isZero(s(x)) → false
S is empty.
Rewrite Strategy: FULL
(5) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)
Infered types.
(6) Obligation:
TRS:
Rules:
double(x) → permute(x, x, a)
permute(x, y, a) → permute(isZero(x), x, b)
permute(false, x, b) → permute(ack(x, x), p(x), c)
permute(true, x, b) → 0'
permute(y, x, c) → s(s(permute(x, y, a)))
p(0') → 0'
p(s(x)) → x
ack(0', x) → plus(x, s(0'))
ack(s(x), 0') → ack(x, s(0'))
ack(s(x), s(y)) → ack(x, ack(s(x), y))
plus(0', y) → y
plus(s(x), y) → plus(x, s(y))
plus(x, s(s(y))) → s(plus(s(x), y))
plus(x, s(0')) → s(x)
plus(x, 0') → x
isZero(0') → true
isZero(s(x)) → false
Types:
double :: false:true:0':s → false:true:0':s
permute :: false:true:0':s → false:true:0':s → a:b:c → false:true:0':s
a :: a:b:c
isZero :: false:true:0':s → false:true:0':s
b :: a:b:c
false :: false:true:0':s
ack :: false:true:0':s → false:true:0':s → false:true:0':s
p :: false:true:0':s → false:true:0':s
c :: a:b:c
true :: false:true:0':s
0' :: false:true:0':s
s :: false:true:0':s → false:true:0':s
plus :: false:true:0':s → false:true:0':s → false:true:0':s
hole_false:true:0':s1_0 :: false:true:0':s
hole_a:b:c2_0 :: a:b:c
gen_false:true:0':s3_0 :: Nat → false:true:0':s
(7) OrderProof (LOWER BOUND(ID) transformation)
Heuristically decided to analyse the following defined symbols:
permute,
ack,
plusThey will be analysed ascendingly in the following order:
ack < permute
plus < ack
(8) Obligation:
TRS:
Rules:
double(
x) →
permute(
x,
x,
a)
permute(
x,
y,
a) →
permute(
isZero(
x),
x,
b)
permute(
false,
x,
b) →
permute(
ack(
x,
x),
p(
x),
c)
permute(
true,
x,
b) →
0'permute(
y,
x,
c) →
s(
s(
permute(
x,
y,
a)))
p(
0') →
0'p(
s(
x)) →
xack(
0',
x) →
plus(
x,
s(
0'))
ack(
s(
x),
0') →
ack(
x,
s(
0'))
ack(
s(
x),
s(
y)) →
ack(
x,
ack(
s(
x),
y))
plus(
0',
y) →
yplus(
s(
x),
y) →
plus(
x,
s(
y))
plus(
x,
s(
s(
y))) →
s(
plus(
s(
x),
y))
plus(
x,
s(
0')) →
s(
x)
plus(
x,
0') →
xisZero(
0') →
trueisZero(
s(
x)) →
falseTypes:
double :: false:true:0':s → false:true:0':s
permute :: false:true:0':s → false:true:0':s → a:b:c → false:true:0':s
a :: a:b:c
isZero :: false:true:0':s → false:true:0':s
b :: a:b:c
false :: false:true:0':s
ack :: false:true:0':s → false:true:0':s → false:true:0':s
p :: false:true:0':s → false:true:0':s
c :: a:b:c
true :: false:true:0':s
0' :: false:true:0':s
s :: false:true:0':s → false:true:0':s
plus :: false:true:0':s → false:true:0':s → false:true:0':s
hole_false:true:0':s1_0 :: false:true:0':s
hole_a:b:c2_0 :: a:b:c
gen_false:true:0':s3_0 :: Nat → false:true:0':s
Generator Equations:
gen_false:true:0':s3_0(0) ⇔ true
gen_false:true:0':s3_0(+(x, 1)) ⇔ s(gen_false:true:0':s3_0(x))
The following defined symbols remain to be analysed:
plus, permute, ack
They will be analysed ascendingly in the following order:
ack < permute
plus < ack
(9) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol plus.
(10) Obligation:
TRS:
Rules:
double(
x) →
permute(
x,
x,
a)
permute(
x,
y,
a) →
permute(
isZero(
x),
x,
b)
permute(
false,
x,
b) →
permute(
ack(
x,
x),
p(
x),
c)
permute(
true,
x,
b) →
0'permute(
y,
x,
c) →
s(
s(
permute(
x,
y,
a)))
p(
0') →
0'p(
s(
x)) →
xack(
0',
x) →
plus(
x,
s(
0'))
ack(
s(
x),
0') →
ack(
x,
s(
0'))
ack(
s(
x),
s(
y)) →
ack(
x,
ack(
s(
x),
y))
plus(
0',
y) →
yplus(
s(
x),
y) →
plus(
x,
s(
y))
plus(
x,
s(
s(
y))) →
s(
plus(
s(
x),
y))
plus(
x,
s(
0')) →
s(
x)
plus(
x,
0') →
xisZero(
0') →
trueisZero(
s(
x)) →
falseTypes:
double :: false:true:0':s → false:true:0':s
permute :: false:true:0':s → false:true:0':s → a:b:c → false:true:0':s
a :: a:b:c
isZero :: false:true:0':s → false:true:0':s
b :: a:b:c
false :: false:true:0':s
ack :: false:true:0':s → false:true:0':s → false:true:0':s
p :: false:true:0':s → false:true:0':s
c :: a:b:c
true :: false:true:0':s
0' :: false:true:0':s
s :: false:true:0':s → false:true:0':s
plus :: false:true:0':s → false:true:0':s → false:true:0':s
hole_false:true:0':s1_0 :: false:true:0':s
hole_a:b:c2_0 :: a:b:c
gen_false:true:0':s3_0 :: Nat → false:true:0':s
Generator Equations:
gen_false:true:0':s3_0(0) ⇔ true
gen_false:true:0':s3_0(+(x, 1)) ⇔ s(gen_false:true:0':s3_0(x))
The following defined symbols remain to be analysed:
ack, permute
They will be analysed ascendingly in the following order:
ack < permute
(11) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol ack.
(12) Obligation:
TRS:
Rules:
double(
x) →
permute(
x,
x,
a)
permute(
x,
y,
a) →
permute(
isZero(
x),
x,
b)
permute(
false,
x,
b) →
permute(
ack(
x,
x),
p(
x),
c)
permute(
true,
x,
b) →
0'permute(
y,
x,
c) →
s(
s(
permute(
x,
y,
a)))
p(
0') →
0'p(
s(
x)) →
xack(
0',
x) →
plus(
x,
s(
0'))
ack(
s(
x),
0') →
ack(
x,
s(
0'))
ack(
s(
x),
s(
y)) →
ack(
x,
ack(
s(
x),
y))
plus(
0',
y) →
yplus(
s(
x),
y) →
plus(
x,
s(
y))
plus(
x,
s(
s(
y))) →
s(
plus(
s(
x),
y))
plus(
x,
s(
0')) →
s(
x)
plus(
x,
0') →
xisZero(
0') →
trueisZero(
s(
x)) →
falseTypes:
double :: false:true:0':s → false:true:0':s
permute :: false:true:0':s → false:true:0':s → a:b:c → false:true:0':s
a :: a:b:c
isZero :: false:true:0':s → false:true:0':s
b :: a:b:c
false :: false:true:0':s
ack :: false:true:0':s → false:true:0':s → false:true:0':s
p :: false:true:0':s → false:true:0':s
c :: a:b:c
true :: false:true:0':s
0' :: false:true:0':s
s :: false:true:0':s → false:true:0':s
plus :: false:true:0':s → false:true:0':s → false:true:0':s
hole_false:true:0':s1_0 :: false:true:0':s
hole_a:b:c2_0 :: a:b:c
gen_false:true:0':s3_0 :: Nat → false:true:0':s
Generator Equations:
gen_false:true:0':s3_0(0) ⇔ true
gen_false:true:0':s3_0(+(x, 1)) ⇔ s(gen_false:true:0':s3_0(x))
The following defined symbols remain to be analysed:
permute
(13) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol permute.
(14) Obligation:
TRS:
Rules:
double(
x) →
permute(
x,
x,
a)
permute(
x,
y,
a) →
permute(
isZero(
x),
x,
b)
permute(
false,
x,
b) →
permute(
ack(
x,
x),
p(
x),
c)
permute(
true,
x,
b) →
0'permute(
y,
x,
c) →
s(
s(
permute(
x,
y,
a)))
p(
0') →
0'p(
s(
x)) →
xack(
0',
x) →
plus(
x,
s(
0'))
ack(
s(
x),
0') →
ack(
x,
s(
0'))
ack(
s(
x),
s(
y)) →
ack(
x,
ack(
s(
x),
y))
plus(
0',
y) →
yplus(
s(
x),
y) →
plus(
x,
s(
y))
plus(
x,
s(
s(
y))) →
s(
plus(
s(
x),
y))
plus(
x,
s(
0')) →
s(
x)
plus(
x,
0') →
xisZero(
0') →
trueisZero(
s(
x)) →
falseTypes:
double :: false:true:0':s → false:true:0':s
permute :: false:true:0':s → false:true:0':s → a:b:c → false:true:0':s
a :: a:b:c
isZero :: false:true:0':s → false:true:0':s
b :: a:b:c
false :: false:true:0':s
ack :: false:true:0':s → false:true:0':s → false:true:0':s
p :: false:true:0':s → false:true:0':s
c :: a:b:c
true :: false:true:0':s
0' :: false:true:0':s
s :: false:true:0':s → false:true:0':s
plus :: false:true:0':s → false:true:0':s → false:true:0':s
hole_false:true:0':s1_0 :: false:true:0':s
hole_a:b:c2_0 :: a:b:c
gen_false:true:0':s3_0 :: Nat → false:true:0':s
Generator Equations:
gen_false:true:0':s3_0(0) ⇔ true
gen_false:true:0':s3_0(+(x, 1)) ⇔ s(gen_false:true:0':s3_0(x))
No more defined symbols left to analyse.